<template>
  <div class="drivingSchool">
    <div class="top">
      <img :src="schoolData.head_img" alt="" class="sHaderImg" />
      <div class="schoolText">
        <div class="top">
          <nuxt-link  :to="{name:'school-schoolDetails-id',query: { schoolId: schoolData.id}}">
            <span class="titleColor curp">{{ schoolData.short_title }}</span>
          </nuxt-link>
          <img
            src="../assets/images/schoolTitle.png"
            alt=""
            class="schoolTitle"
          />
        </div>
        <div class="tips">
          <div class="tipItem">
            <img src="../assets/images/stips.png" alt="" class="stips" />
            <span>拿证快</span>
          </div>
          <div class="tipItem">
            <img src="../assets/images/stips.png" alt="" class="stips" />
            <span>学费优惠</span>
          </div>
          <div class="tipItem">
            <img src="../assets/images/stips.png" alt="" class="stips" />
            <span>教练认证负责</span>
          </div>
        </div>
      </div>
      <div class="money">
        <span>{{ schoolData.price }}</span>
      </div>
    </div>
    <div class="middle">
      <div class="item">
        <span class="titleColor"
          >{{ schoolData.sCount }}<span class="wan">人</span></span
        >
        <span class="tips">学员人数</span>
      </div>
      <div class="item">
        <span class="titleColor">168</span>
        <span class="tips">教练人数</span>
      </div>
      <div class="item">
        <span class="titleColor">98%</span>
        <span class="tips">好评率</span>
      </div>
    </div>
    <div class="bot">
      <img src="../assets/images/a.jpg" alt="" class="headerImg" />
      <span class="tips"
        >我是一名大学生撑着暑期想考个驾照，然后经过朋友推荐积极你你</span
      >
    </div>
  </div>
</template>
<script>
export default {
  components: {},
  props: {
    schoolData: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  data() {
    return {};
  },
  methods: {},
};
</script>

<style scoped lang='scss'>
.drivingSchool {
  width: 466px;
  height: 188px;
  box-shadow: 0 0 10px rgba(219, 226, 233, 1);
  border-radius: 4px;
  margin: 5px;
  padding: 30px 50px;

  .top {
    display: flex;
    align-items: center;

    .sHaderImg {
      width: 94px;
      height: 64px;
      margin-right: 12px;
      flex-shrink: 0;
      border-radius: 4px;
    }

    .schoolText {
      flex-grow: 1;
      overflow: hidden;

      .tips {
        display: flex;
        align-items: center;
        color: #898989;
        font-size: 14px;

        .tipItem {
          display: flex;
          align-items: center;
          margin-right: 15px;

          .stips {
            margin-right: 5px;
          }
        }
      }

      .top {
        margin-bottom: 12px;
        font-size: 24px;

        .schoolTitle {
          margin-left: 8px;
        }
      }
    }

    .money {
      width: 80px;
      flex-shrink: 0;
      color: #ff6054;
      font-weight: bold;
      font-size: 24px;
    }
  }

  .middle {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f8f8;
    border-radius: 4px;
    padding: 12px 26px;

    .item {
      display: flex;
      flex-direction: column;

      .titleColor {
        font-size: 18px;
        font-weight: bold;

        .wan {
          font-size: 10px;
          margin-left: 4px;
        }
      }

      .tips {
        font-size: 14px;
      }
    }
  }

  .bot {
    margin-top: 24px;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    line-height: 25px;
    max-height: 25px;

    img {
      width: 19px;
      height: 19px;
      border-radius: 50%;
      margin-right: 5px;
    }

    .tips {
      font-size: 14px;
    }
  }
}
</style>